<?php
//debug($adjectives);
?>
<table width="1024px">
    <tr ><td>&nbsp;</td></tr>
    <tr><td>&nbsp;</td></tr>
    <tr>
        <td>
            <table width="100%" id="table" >
                <tr >
                    <th width="100px"><?php __('Adjective'); ?></th>
                    <th width="100px"><?php __('Subject') ?></th>
                    <th width="60px"><?php __('Suggested By') ?></th>
                    <th width="137px">&nbsp;</th>
                    <th width="36px"><?php __('Delete')?></th>
                    
                </tr>
<?php foreach ($adjectives as $data): ?>
                    <tr id="table_content">
                        <td><?php echo $data['SuggestedAdjectives']['title'];?></td>
                        <td><?php echo $data['Subject']['subject']; if($data['Subject']['desc']) echo " (".$data['Subject']['desc'].")" ?></td>
                        <td><?php echo $data['User']['username'];?></td>
                        <td><?php echo $this->Html->link('Apply and add to Adjective Dictionary',array('action'=>'add_suggested',$data['SuggestedAdjectives']['id'])); ?></td>
                        <td><?php echo $this->Html->link($this->Html->image('trash.png', array('alt' => 'Delete','title'=>'Delete' ,'border'=>'0')), array('action' => 'admin_delete', $data['SuggestedAdjectives']['id']), array('escape' => false,'onclick'=>"return confirm('Are you sure you want to delete?')")); ?></td>
                    </tr>
                        <?php endforeach; ?>
                <tr><td><?php          

echo $this->Paginator->prev('« Previous', null, null, array('class' => 'disabled'));?>
                       
                        <?php
 echo $this->Paginator->numbers(); 
 ?>
                        
                        <?php
echo $this->Paginator->next('Next »', null, null, array('class' => 'disabled')); 

 echo $this->Paginator->counter();     
                
                        ?></td></tr>
            </table>
        </td>
    </tr>
</table>




